import { fetchData ,uploadFile} from "../utils/request";

export default {
  //公共
  publick:{
    getJssDk(params, callback, failure) { // 获取签名
      fetchData('/wxss/v1/applyShop/mpShare/getSignature', params, 'post', callback, failure)
    },
    visit(params, callback, failure) { // 页面访问量
      fetchData('/sitecount/v1/visit', params, 'post', callback, failure)
    },
    getOpenId(params, callback, failure){
      fetchData('/aireport/v1/store/user/bindMpOpenId', params, 'post', callback, failure)
    },
    uploadFilePost(params, callback){//上传文件
      uploadFile('/aireport/v1/file/upload', params, callback)
    },
   
  },
  // 用户相关
  all:{
    sendValidCode(params, callback, failure){ //发送验证码
      fetchData('/wxss/v1/applyShop/sendValidCode', params, 'post', callback, failure)
    },
    checkCode(params, callback, failure){ //检查验证码
      fetchData('/wxss/v1/applyShop/checkCode', params, 'post', callback, failure)
    },
    IDCardOCR(params, callback, failure){ //解析身份证
      fetchData('/wxss/v1/applyShop/IDCardOCR', params, 'post', callback, failure)
    },
    BizLicenseOCR(params, callback, failure){ //营业执照解析
      fetchData('/wxss//v1/applyShop/BizLicenseOCR', params, 'post', callback, failure)
    },
    bindMpOpenId(params, callback, failure){ //绑定公众号
      fetchData('/wxss/v1/applyShop/bindMpOpenId', params, 'post', callback, failure)
    },
    applyShopAdd(params, callback, failure){ //上传店铺信息
      fetchData('/wxss/v1/applyShop/add', params, 'post', callback, failure)
    },
    basicOCR(params, callback, failure){ //上传店铺信息
      fetchData('/wxss//v1/applyShop/basicOCR', params, 'post', callback, failure)
    },
    checkProgress(params, callback, failure){ //上传店铺信息
      fetchData('/wxss/v1/applyShop/checkProgress', params, 'post', callback, failure)
    },
    
    
  }, 
 
}


